function px2mm(px) {
  var ratio = 0;
  var div = document.createElement("div");
  div.style.width = "1cm";
  div.id = "puc";
  document.body.appendChild(div);
  var w = getComputedStyle(div, null).width;
  ratio = w.substr(0, w.length - 2);
  div.parentNode.removeChild(div);
  var r = ratio / 10;
  return Math.round(px / r);
}
export { px2mm };
